<script>
import { mapMutations } from 'vuex'
export default {
  created () {
    // 调用API从本地缓存中获取数据
    let _this = this
    wx.getSystemInfo({
      success (res) {
        console.log(res)
        _this.updateSystemInfo(res)
      }
    })
    // wx.hide
    // eslint-disable-next-line
    console.log('app created and cache logs by setStorageSync')
  },
  methods: {
    ...mapMutations({
      updateSystemInfo: 'home/updateSystemInfo'
    })
  }
}
</script>

<style>
.container {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 200rpx 0;
  box-sizing: border-box;
}
page {
    height: 100%;
    /* background-color: #baccd9; */
}
/* this rule will be remove */
* {
  transition: width 2s;
  -moz-transition: width 2s;
  -webkit-transition: width 2s;
  -o-transition: width 2s;
}
</style>
